
pkgname=efibootmgr
pkgver=16
_commit=0bb83cf5640ef834eb4c32a146d140c40034247b
pkgrel=1
pkgdesc="Tool to modify UEFI Firmware Boot Manager Variables."
arch=('x86_64')
url="https://github.com/rhinstaller/efibootmgr"
license=('GPL2')
depends=('zlib' 'pciutils' 'efivar')
options=('strip' 'purge' 'docs' 'zipman' '!emptydirs')
source=("https://github.com/rhinstaller/efibootmgr/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
#source=("https://github.com/rhinstaller/efibootmgr/archive/${_commit}.zip")
md5sums=('ab7cf46774fda951a0e8a40beb65a90e')

build () {	
	cd ${pkgname}-${pkgver}/
	
	make EXTRA_CFLAGS="-Os" EFIDIR="/boot"
	echo
}


package() {
    cd ${pkgname}-${pkgver}/
        
    install -d ${pkgdir}/usr/bin/
    install -d ${pkgdir}/usr/share/man/man8/
	
	install -D -m0755 src/efibootmgr ${pkgdir}/usr/sbin/efibootmgr
	install -D -m644 src/efibootmgr.8 ${pkgdir}/usr/share/man/man8/efibootmgr.8
}
